<!DOCTYPE html>
<html ng-app="app" ng-controller="indexCtrl">
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title ng-bind="oem.title"></title>
    <link rel="icon" type="image/x-icon" id="favicon">
    <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css"/>
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="modules/agent/agbBuy/agbBuy.css"/>
    <link rel="stylesheet" href="../../oem/css/common.css" />

    <script src="../res1.hubcloud.com.cn/lib/angularjs/angular_v1.5.5.min.js"></script>
    <script src="../res1.hubcloud.com.cn/lib/angularjs/angular_v1.5.5.min.js"></script>
    <script src="../res1.hubcloud.com.cn/lib/angularjs/angular-ui-router.min.js"></script>
    <script src="../res1.hubcloud.com.cn/lib/ocLazyLoad/ocLazyLoad.min.js"></script>
    <style>

    </style>
</head>
<body>
        <div class="nav_top">
                <div class="logo fl" id="logo"></div>
                <ul class="nav_list fl">
                    <!-- ngIf: permission.view['首页'] --><li ng-if="permission.view['首页']" class="ng-scope"><a ui-sref="agentBg.index" ui-sref-active="active" class="active" href="./agentIndex.html">首页</a></li><!-- end ngIf: permission.view['首页'] -->
                    <!-- ngIf: permission.view['投放管理'] --><li ng-if="permission.view['投放管理']" class="ng-scope">
                        <!-- <a ui-sref="agentBg.customer" ui-sref-active="active">投放管理</a> -->
                        <a class="toFirstSub" href="./customer.html">投放管理</a>
                        <ul class="nav_dropdown" style="width: 1903px;">
                            <li><a href="./customer.html" ui-sref-active="active" ui-sref="agentBg.delivery.customer" class="">广告主列表</a></li>
                            <!-- ngIf: hasDepot -->
                        </ul>
                    </li><!-- end ngIf: permission.view['投放管理'] -->
                    <!-- ngIf: permission.view['报表中心'] --><li ng-if="permission.view['报表中心']" class="ng-scope">
                        <a class="toFirstSub" href="./bidding.html"  ng-class="{'active':$state.includes('agentBg.report.*')}">报表中心</a>
                        <ul class="nav_dropdown" style="width: 1903px;">
                            <!-- ngIf: permission.view['报表中心'].sub['竞价交易概况'] --><li ng-if="permission.view['报表中心'].sub['竞价交易概况']" class="ng-scope"><a href="./bidding.html" ui-sref-active="active" ui-sref="agentBg.report.bidding" class="">竞价交易概况</a></li><!-- end ngIf: permission.view['报表中心'].sub['竞价交易概况'] -->
                            <!-- ngIf: permission.view['报表中心'].sub['合约交易概况'] --><li ng-if="permission.view['报表中心'].sub['合约交易概况']" class="ng-scope"><a href="./deal.html" ui-sref-active="active" ui-sref="agentBg.report.deal" class="">合约交易概况</a></li><!-- end ngIf: permission.view['报表中心'].sub['合约交易概况'] -->
                            <!-- ngIf: permission.view['报表中心'].sub['合约资源报表'] --><li ng-if="permission.view['报表中心'].sub['合约资源报表']" class="ng-scope"><a href="./resources.html" ui-sref-active="active" ui-sref="agentBg.report.resources" class="">合约资源报表</a></li><!-- end ngIf: permission.view['报表中心'].sub['合约资源报表'] -->
                        </ul>
                    </li><!-- end ngIf: permission.view['报表中心'] -->
                    <!-- ngIf: permission.view['系统管理'] --><li ng-if="permission.view['系统管理']" class="ng-scope">
                        <a href="./account.html" class="toFirstSub" ng-class="{'active':$state.includes('agentBg.manage.*')}">系统管理</a>
                        <ul class="nav_dropdown" style="padding-left: 235px; width: 1903px;">
                            <!-- ngIf: permission.view['系统管理'].sub['账户管理'] --><li ng-if="permission.view['系统管理'].sub['账户管理']" class="ng-scope"><a href="./account.html" ui-sref-active="active" ui-sref="agentBg.manage.account" class="">账户管理</a></li><!-- end ngIf: permission.view['系统管理'].sub['账户管理'] -->
                            <!-- ngIf: permission.view['系统管理'].sub['用户管理'] --><li ng-if="permission.view['系统管理'].sub['用户管理']" class="ng-scope"><a href="./user.html" ui-sref-active="active" ui-sref="agentBg.manage.user" class="">员工用户管理</a></li><!-- end ngIf: permission.view['系统管理'].sub['用户管理'] -->
                            <!-- ngIf: permission.view['系统管理'].sub['广告主管理'] --><li ng-if="permission.view['系统管理'].sub['广告主管理']" class="ng-scope"><a href="./adv.html" ui-sref-active="active" ui-sref="agentBg.manage.adv" class="">广告主管理</a></li><!-- end ngIf: permission.view['系统管理'].sub['广告主管理'] -->
                            <!-- ngIf: permission.view['系统管理'].sub['角色管理'] --><li ng-if="permission.view['系统管理'].sub['角色管理']" class="ng-scope"><a href="./role.html" ui-sref-active="active" ui-sref="agentBg.manage.role({type:0})" class="">角色管理</a></li><!-- end ngIf: permission.view['系统管理'].sub['角色管理'] -->
                        </ul>
                    </li><!-- end ngIf: permission.view['系统管理'] -->
                    <!-- ngIf: permission.view['财务管理'] --><li ng-if="permission.view['财务管理']" class="ng-scope">
                        <a href="./record.html" class="toFirstSub" ng-class="{'active':$state.includes('agentBg.finance.*')}">财务管理</a>
                        <ul class="nav_dropdown" style="padding-left: 309px; width: 1903px;">
                            <li>
                                <a href="./record.html" ui-sref-active="active" ui-sref="agentBg.finance.record" class="">财务记录</a>
                            </li>
                            <!-- ngIf: permission.view['财务管理'].sub['财务信息'] --><li ng-if="permission.view['财务管理'].sub['财务信息']" class="ng-scope"><a href="./info.html" ui-sref-active="active" ui-sref="agentBg.finance.info" class="">财务信息</a></li><!-- end ngIf: permission.view['财务管理'].sub['财务信息'] -->
                            <!-- ngIf: permission.view['财务管理'].sub['利润提取'] -->
                        </ul>
                    </li><!-- end ngIf: permission.view['财务管理'] -->
                    <!-- ngIf: permission.view['流量商城'] --><li ng-if="permission.view['流量商城']" class="ng-scope">
                        <a href="./heYueZiYuanGuanLi.html" class="toFirstSub" ng-class="{'active':$state.includes('agentBg.deal.*')}">合约交易管理</a>
                        <ul class="nav_dropdown" style="padding-left: 310px; width: 1903px;">
                            <!-- ngIf: permission.view['流量商城'].sub['商品列表'] --><li ng-if="permission.view['流量商城'].sub['商品列表']" class="ng-scope"><a href="./heYueZiYuanGuanLi.html" ui-sref-active="active" ui-sref="agentBg.deal.resources" class="">商品列表</a></li><!-- end ngIf: permission.view['流量商城'].sub['商品列表'] -->
                            <!-- ngIf: permission.view['流量商城'].sub['已购列表'] --><li ng-if="permission.view['流量商城'].sub['已购列表']" class="ng-scope"><a href="./buy.html" ui-sref-active="active" ui-sref="agentBg.deal.buy" class="">已购列表</a></li><!-- end ngIf: permission.view['流量商城'].sub['已购列表'] -->
                        </ul>
                    </li><!-- end ngIf: permission.view['流量商城'] -->
            
                    <!--<span style="position: absolute;right: 250px;">-->
                        <!--<a ui-sref="buyList">-->
                            <!--<img src="images/active/nav_see11.jpg" />-->
                        <!--</a>-->
            
                    <!--</span>-->
                </ul>
                <div class="user" ng-class="{hover:hover}" ng-click="getBalnce()" ng-mouseleave="hover=false">
                    <div class="user-avatar"></div>
                    <div class="user-info">
                        <p ng-bind="user.loginName" class="ng-binding">华为</p>
                        <p ng-bind="user.name" class="ng-binding">上海可推智能科技有限公司</p>
                    </div>
                    <ul class="user-list">
                        <!-- ngIf: permission.view['财务管理'].sub['账户余额'] --><li ng-if="permission.view['财务管理'].sub['账户余额']" class="ng-binding ng-scope">余额：</li><!-- end ngIf: permission.view['财务管理'].sub['账户余额'] -->
                        <li ng-click="logout()">退出登录</li>
                    </ul>
                </div>
            </div>
    <ui-view class="ng-scope"><!-- uiView:  --><ui-view class="ng-scope"><!-- uiView:  --><ui-view class="ng-scope"><div class="buy-page page ng-scope">

            <!--页面标题-->
            <h3 class="page-title">
                合约资源管理
                <div class="dropdown dropdown-date ng-isolate-scope" has-all="true" callback="chooseDate">                        <button class="btn btn-default dropdown-toggle ng-binding" type="button" data-toggle="dropdown">全部时间段</button>                        <span class="caret"></span>                        <ul class="dropdown-menu wr">                            <!-- ngIf: hasAll --><li ng-if="hasAll" ng-click="selectDate(0)" class="ng-scope"><a href="javascript:;">全部时间段</a></li><!-- end ngIf: hasAll -->                            <li ng-click="selectDate(1)"><a href="javascript:;" class="ng-binding">今日：2019年03月14日</a></li>                            <li ng-click="selectDate(2)"><a href="javascript:;" class="ng-binding">昨日：2019年03月13日</a></li>                            <li ng-click="selectDate(3)"><a href="javascript:;" class="ng-binding">最近7日：2019年03月08日 — 2019年03月14日</a></li>                            <li ng-click="selectDate(4)"><a href="javascript:;" class="ng-binding">最近14日：2019年03月01日 — 2019年03月14日</a></li>                            <li class="li_time">                                <a href="javascript:;" class="cl">                                    <span class="fl"><input ng-click="calendar($event)" type="text" readonly="readonly" class="startTime" placeholder="选择开始时间..."><i class="icon_time"></i></span>                                    <em class="fl">-</em>                                    <span class="fl"><input ng-click="calendar($event)" type="text" readonly="readonly" class="endTime" placeholder="选择结束时间..."><i class="icon_time"></i></span>                                    <span class="fl"><input ng-click="selectDate(5)" type="button" value="确认选择" class="affirm"></span>                                </a>                            </li>                        </ul>                    </div>
            </h3>
        
            <!--表格-->
            <div class="table-box">
                <div class="table-title">
                    <h3 class="table-title-font">已购资源列表</h3>
                    <div class="table-download" ng-click="download()"></div>
                    <div class="dropdown dropdown-filter ng-isolate-scope" ng-class="{disabled:disabled}" list="stateList" callback="selectState">                            <button class="btn btn-default dropdown-toggle cl" data-toggle="dropdown">                                <span style="width: 55%; display: inline-block;" class="ng-binding">全部状态</span>                                <span ng-show="publish" class="estimate ng-hide">                                    <span class="ng-binding">流量占比：%</span>                                    <span style="width: %"></span>                                </span>                            </button>                            <span class="caret"></span>                            <ul class="dropdown-menu">                                <!-- ngRepeat: item in list --><li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">                                    <a title="全部状态" href="javascript:;" class="ng-binding">全部状态</a>                                    <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span>                                        <span style="width: %"></span>                                    </span>                                </li><!-- end ngRepeat: item in list --><li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">                                    <a title="待执行" href="javascript:;" class="ng-binding">待执行</a>                                    <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span>                                        <span style="width: %"></span>                                    </span>                                </li><!-- end ngRepeat: item in list --><li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">                                    <a title="执行中" href="javascript:;" class="ng-binding">执行中</a>                                    <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span>                                        <span style="width: %"></span>                                    </span>                                </li><!-- end ngRepeat: item in list --><li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">                                    <a title="结束" href="javascript:;" class="ng-binding">结束</a>                                    <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span>                                        <span style="width: %"></span>                                    </span>                                </li><!-- end ngRepeat: item in list --><li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">                                    <a title="售罄" href="javascript:;" class="ng-binding">售罄</a>                                    <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span>                                        <span style="width: %"></span>                                    </span>                                </li><!-- end ngRepeat: item in list -->                            </ul>                        </div>
                    <div class="dropdown dropdown-filter ng-isolate-scope" ng-class="{disabled:disabled}" list="typeList" callback="selectType">                            <button class="btn btn-default dropdown-toggle cl" data-toggle="dropdown">                                <span style="width: 55%; display: inline-block;" class="ng-binding">全部资源类型</span>                                <span ng-show="publish" class="estimate ng-hide">                                    <span class="ng-binding">流量占比：%</span>                                    <span style="width: %"></span>                                </span>                            </button>                            <span class="caret"></span>                            <ul class="dropdown-menu">                                <!-- ngRepeat: item in list --><li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">                                    <a title="全部资源类型" href="javascript:;" class="ng-binding">全部资源类型</a>                                    <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span>                                        <span style="width: %"></span>                                    </span>                                </li><!-- end ngRepeat: item in list --><li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">                                    <a title="保价保量" href="javascript:;" class="ng-binding">保价保量</a>                                    <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span>                                        <span style="width: %"></span>                                    </span>                                </li><!-- end ngRepeat: item in list --><li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">                                    <a title="保价不保量" href="javascript:;" class="ng-binding">保价不保量</a>                                    <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span>                                        <span style="width: %"></span>                                    </span>                                </li><!-- end ngRepeat: item in list -->                            </ul>                        </div>
                </div>
                <table>
                    <thead>
                    <tr>
                        <th>adxID</th>
                        <th>dealID</th>
                        <th>合约资源名称</th>
                        <th>资源类型</th>
                        <th>投放时段</th>
                        <th>单价(元/千次曝光)</th>
                        <th>天量(千次曝光/每天)</th>
                        <th>合约资源详情</th>
                    </tr>
                    </thead>
                    <tbody>
                    <!-- ngRepeat: item in list -->
                    </tbody>
                </table>
        
                <div id="pageToolbar" class="page"><div id="Paging_05844072846167141" class="ui-paging-container"><ul><li class="js-page-first js-page-action ui-pager ui-pager-disabled">首页</li><li class="js-page-prev js-page-action ui-pager ui-pager-disabled">上一页</li><li class="ui-paging-toolbar"><span>跳转到</span><input type="text" class="ui-paging-count"> 页<select class="ui-select-pagesize"><option value="20">每页展示20条/页</option><option value="50">每页展示50条/页</option><option value="100">每页展示100条/页</option></select><span> </span></li><li class="js-page-last js-page-action ui-pager">末页</li><li class="js-page-next js-page-action ui-pager">下一页</li></ul></div></div>
            </div>
        </div></ui-view></ui-view></ui-view>



</body>
</html>
<script src="../res1.hubcloud.com.cn/lib/jquery/jquery.min.js"></script>


<!-- <script src="../res1.hubcloud.com.cn/lib/layer/layer.js"></script>
<script src="../res1.hubcloud.com.cn/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="../res1.hubcloud.com.cn/lib/calendar/calendar.js"></script>

<script src="../res1.hubcloud.com.cn/lib/qiniu/plupload/moxie.js"></script>
<script src="../res1.hubcloud.com.cn/lib/query.js"></script>
<script src="../res1.hubcloud.com.cn/lib/paging.js"></script>
<script src="js/commen.js?rand=v1.0.54"></script>
<script src="./js/factory/proxy.js"></script> -->
<!-- <script src="./modules/agent/app.js?rand=v1.0.54"></script> -->
<!-- <script src="./modules/agent/router.js?rand=v1.0.54"></script> -->

<script>
    $(function(){
        $('.user').on('click',function(){
            $(this).toggleClass('hover');
        })

        $('.user').mouseleave(function(){
            $(this).removeClass('hover');
        });

        
        $('.dropdown').on('click',function(){

            if($(this).hasClass("open")){
                $(this).removeClass('open');
            }else{
                $('.dropdown').removeClass('open');
                $(this).addClass('open');
            }
        })

// active
    })
</script>
<script src="../../oem/js/oem.js"></script>